<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        section {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: url(https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/de4571ba3e134425b3905b8e505493ed~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1920&h=1080&s=341630&e=jpg&b=6a7d95);
            background-position: center;
            background-attachment: fixed;
            background-size: cover;
            overflow: hidden;
        }

        section h2 {
            font-size: 5em;
            color: #fff;
            pointer-events: none;
            text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        }

        section .glass {
            position: absolute;
            transform: translate(-50%, -50%);
            pointer-events: none;
            width: 300px;
            height: 200px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            background: transparent;
            backdrop-filter: blur(10px);
            transition: 0.2s;
        }
    </style>
</head>

<body>
    <section>
        <h2>JUEJIN ~</h2>
        <div class="glass"></div>
    </section>
    <script>
        document.addEventListener('mousemove', function (e) {
            const glass = document.querySelector('.glass')
            glass.style.left = e.offsetX + 'px'
            glass.style.top = e.offsetY + 'px'
        })
    </script>
</body>

</html>